package top.kaoshanji.p1ch02d.main;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import top.kaoshanji.p1ch02d.config.ProjectConfig;

/**
 * 代码清单-p1ch02d-01：定义测试@PostConstruct的main方法
 * @author kaoshanji
 * ^_^
 * create time 2025/4/27 16:24
 */
public class Main {

    public static void main(String[] args) {

        var context = new AnnotationConfigApplicationContext(ProjectConfig.class);

        Parrot parrot = context.getBean(Parrot.class);
        System.out.println(parrot);
        System.out.println(parrot.getName());

    }

}
